﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Model.admin
{
    [SugarTable("integral_grade")] // 显式指定表名
    public class AdminIntegralGrade
    {
        /// <summary>
        /// 编号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
        public long Id { get; set; }

        /// <summary>
        /// 积分区间开始
        /// </summary>
        [SugarColumn(ColumnName = "integral_start")]
        public int? IntegralStart { get; set; }

        /// <summary>
        /// 积分区间结束
        /// </summary>
        [SugarColumn(ColumnName = "integral_end")]
        public int? IntegralEnd { get; set; }

        /// <summary>
        /// 借款额度
        /// </summary>
        [SugarColumn(ColumnName = "borrow_amount")]
        public decimal? BorrowAmount { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "create_time")]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(ColumnName = "update_time")]
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 逻辑删除(1:已删除，0:未删除)
        /// </summary>
        [SugarColumn(ColumnName = "is_deleted")]
        public byte IsDeleted { get; set; }
    }
}
